package com.sky.blog.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sky.blog.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author sky  2022/3/28
 * @version 1.0
 */
@Data
@TableName("blog_topic")
@EqualsAndHashCode(callSuper = true)
public class BlogTopic extends BaseEntity {

    /**
     * primary key
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 专题背景
     */
    private String img;

    /**
     * 专题跳转链接
     */
    private String href;

    /**
     * 优先级
     */
    private Integer sort;

    /**
     * 所属博客ID
     */
    private Long postId;
}
